{{define "header"}}
<header class="lgn-header">
    {{ if hasCustomPolicy .LabelPolicy }}
        {{ $logoDark := customLogoResource .PrivateLabelingOrgID .LabelPolicy true }}
        {{ $logoLight := customLogoResource .PrivateLabelingOrgID .LabelPolicy false }}
        {{if $logoDark}}
            <img class="lgn-logo lgn-logo-dark" src="{{$logoDark}}" alt="Logo">
        {{end}}
        {{if $logoLight}}
        <img class="lgn-logo lgn-logo-light" src="{{$logoLight}}" alt="Logo">
        {{end}}
    {{ else }}
        <img class="lgn-logo lgn-logo-dark" src="{{ resourceThemeUrl "logo-light.svg" .Theme }}" alt="Logo">
        <img class="lgn-logo lgn-logo-light" src="{{ resourceThemeUrl "logo-dark.svg" .Theme }}" alt="Logo">
    {{end}}
</header>
{{end}}
